package cn.edu.sgu.www.mhxysy.dto.role;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class RoleConfigSchemaSaveDTO implements Serializable {
    private static final long serialVersionUID = 18L;

    /**
     * 角色ID
     */
    @Pattern(regexp = RegExps.ROLE_ID, message = "角色ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.ROLE_ID_NOT_NULL)
    @ApiModelProperty(value = "角色ID")
    private String roleId;

    /**
     * 宠物ID
     */
    @Pattern(regexp = RegExps.CHONGWU_ID, message = "宠物ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.CHONGWU_ID_NOT_NULL)
    @ApiModelProperty(value = "宠物ID", required = true)
    private String chongwuId;

    /**
     * 角色配置方案ID
     */
    @Positive(message = "角色配置方案ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "角色配置方案" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "角色配置方案ID")
    private Integer configId;

    /**
     * 角色加点方案ID
     */
    @Pattern(regexp = IdentifierPrefixes.PREFIX_JSJD + RegExps.UU_ID_SUFFIX, message = "角色加点方案ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = "角色加点方案" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "角色加点方案ID")
    private String jiadianId;

    /**
     * 角色经脉方案ID
     */
    @Positive(message = "角色经脉方案ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "角色经脉方案" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "角色脉方案ID")
    private Integer jingmaiId;

    /**
     * 潜能果方案ID
     */
    @Positive(message = "潜能果方案ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "潜能果方案" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "潜能果方案ID")
    private Integer potencyId;

    /**
     * 角色装备方案ID
     */
    @Positive(message = "角色装备方案ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "角色装备方案" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "角色装备方案ID")
    private Integer equipmentId;
}